package com.dubbo.utils;

import java.util.UUID;

public final class StringUtils {

    private StringUtils() {

    }

    public static String uuid() {
        return UUID.randomUUID().toString();
    }

    public static String uuidNoSeparate() {
        return uuid().replace("-", "");
    }

    public static String nullToEmpty(String str) {
        if (str == null) {
            return "";
        } else {
            return str;
        }
    }

}

